<?php
//admin相关
class lib_admin{
	//url重定向
	public static function redirect($url = '/'){
		Kohana::$base_url = Kohana::$config->load('common')->host.project::config('config')->adminBootstrap.'/';
		Request::current()->redirect($url);
	}
	
	public static function base($uri = ''){
		return project::config()->host.project::config('config')->adminBootstrap.'/'.trim((string)$uri,'/');
	}
}